package views;

import models.DesktopModel;
import mvc.AbstractView;
import mvc.IController;

public class DesktopView extends AbstractView
{
	public DesktopView(IController controller, DesktopModel desktop)
	{
		super(controller);
		itsDesktopModel = desktop;
	}
	
	@Override
	public void update()
	{
		System.out.println(itsDesktopModel.getCaption());
	}

	@Override
	public void onInputString(String str)
	{
		itsIController.onAction(str);
	}

	private DesktopModel itsDesktopModel;
}
